<template>
    <div>
        <el-container style="height: 700px; border: 1px solid #eee">
            <el-header style="font-size: 40px ;text-align: center;background-color: rgb(238, 241, 246)">学习系统
            </el-header>
            <el-container>
                <el-aside width="200px">
                    <el-menu :default-openeds="['1', '3']">
                        <el-submenu index="1">
                            <template slot="title"><i class="el-icon-message"></i>系统信息管理</template>
                            <el-menu-item index="1-1">
                                <router-link to="/dept">
                                    部门管理
                                </router-link>
                            </el-menu-item>
                            <el-menu-item index="1-2">
                                <router-link to="/emp">
                                    员工管理
                                </router-link>
                            </el-menu-item>
                        </el-submenu>
                    </el-menu>
                </el-aside>
                <el-main>
                    <!--表单-->
                    <el-form :inline="true" :model="searchForm" class="demo-form-inline">
                        <el-form-item label="姓名">
                            <el-input v-model="searchForm.name" placeholder="姓名"></el-input>
                        </el-form-item>
                        <el-form-item label="性别">
                            <el-select v-model="searchForm.gender" placeholder="性别">
                                <el-option label="男" value="1"></el-option>
                                <el-option label="女" value="2"></el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="入职日期">
                            <span class="demonstration">入职日期</span>
                            <el-date-picker
                                v-model="searchForm.entrydate"
                                end-placeholder="结束日期"
                                range-separator="至"
                                start-placeholder="开始日期"
                                type="daterange">
                            </el-date-picker>
                        </el-form-item>
                        <el-form-item>
                            <el-button type="primary" @click="onSubmit">查询</el-button>
                        </el-form-item>
                    </el-form>
                    <!--表格-->
                    <el-table :data="tableData" border>
                        <el-table-column label="姓名" prop="name" width="140">
                        </el-table-column>
                        <el-table-column label="图像" prop="image" width="120">
                        </el-table-column>
                        <el-table-column label="性别" prop="gender">
                        </el-table-column>
                        <el-table-column label="职位" prop="job">
                        </el-table-column>
                        <el-table-column label="入职日期" prop="entrydate">
                        </el-table-column>
                        <el-table-column label="最后操作时间" prop="updatetime">
                        </el-table-column>
                        <el-table-column label="操作">
                            <el-button size="mini" type="primary">编辑</el-button>
                            <el-button size="mini" type="danger">删除</el-button>
                        </el-table-column>
                    </el-table>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>

export default {
    data() {
        return {
            tableData: [],
            searchForm: {
                name: '',
                gender: '',
                entrydate: [],
            }
        }
    },
    methods: {
        onSubmit() {
            alert('我要查询数据')
        }
    }
}
</script>

<style scoped>

</style>